package com.example.user;

import org.springframework.stereotype.Component;

@Component
public class UserService {
    private final UserFeignClient userFeignClient;

    public UserService(UserFeignClient userFeignClient) {
        this.userFeignClient = userFeignClient;
    }

    public String fetchUser(Long id) {
        return userFeignClient.getUserById(id);
    }

    public String test() {
        return userFeignClient.test();
    }
}
